package io.kiki.sba.registry.store.api.elector;


public interface LeaderElector {

    void registerLeaderAware(LeaderAware leaderAware);

    String myself();

    /**
     * start compete leader
     */
    void change2Follow();

    /**
     * stop compete leader
     */
    void change2Observer();


    boolean amILeader();

    Leader getLeaderInfo();

}
